package com.ruibang.glass.produce.domain.resp;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.alibaba.fastjson.annotation.JSONField;
import com.teaming.cloud.framework2.common.tools.LocalDateTimeStringConverter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-03-19  15:58
 * @Description: TODO:投入生产记录
 * @Version: 1.0
 */

@Data
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
public class TrProductionRecord {
    @ApiModelProperty("热端玻璃ID")
    @ColumnWidth(22)
    @ExcelProperty(value = {"热端玻璃ID"}, index = 0)
    private String glassId;
    @ApiModelProperty("冷端玻璃ID")
    @ColumnWidth(22)
    @ExcelProperty(value = {"冷端玻璃ID"}, index = 1)
    private String coldGlassId;

    @ApiModelProperty("搬入时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ColumnWidth(18)
    @ExcelProperty(value = {"投入", "搬入时间"}, index = 2, converter = LocalDateTimeStringConverter.class)
    private LocalDateTime moveInTime;
    @ApiModelProperty("搬出时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ColumnWidth(18)
    @ExcelProperty(value = {"投入", "搬出时间"}, index = 3, converter = LocalDateTimeStringConverter.class)
    private LocalDateTime moveOutTime;

    @ApiModelProperty("搬入位置")
    @ColumnWidth(8)
    @ExcelProperty(value = {"投入", "搬入位置"}, index = 4)
    private String position;
    @ApiModelProperty("托盘号")
    @ColumnWidth(15)
    @ExcelProperty(value = {"投入", "托盘号"}, index = 5)
    private String palletNumber;


}
